package com.cyx.service;

import com.cyx.pojo.Book;
import com.cyx.pojo.User;

import java.util.List;

public interface BorrowService {
    boolean borrowBooks(int userId,int bookId);
    boolean borrowBooks(int userId,List<Integer> bookIds) throws Exception;
    boolean borrowBooks(User user, Book book);
    boolean sendBackBooks(int userId,int bookId) throws Exception;
    boolean sendBackBooks(int userId,List<Integer> bookIds) throws Exception;
    boolean sendBackBooks(User user,Book book);
}
